package p270jp.pxv.android.event;

import p134ei.AnalyticsAction;
import p134ei.PremiumAnalyticsSource;
import p270jp.pxv.android.legacy.constant.SearchSort;

/* renamed from: jp.pxv.android.event.ShowRequiredPremiumDialogEvent */
/* loaded from: classes2.dex */
public class ShowRequiredPremiumDialogEvent {
    private SearchSort searchSort;

    /* renamed from: jp.pxv.android.event.ShowRequiredPremiumDialogEvent$1 */
    /* loaded from: classes2.dex */
    public static /* synthetic */ class C42091 {
        public static final /* synthetic */ int[] $SwitchMap$jp$pxv$android$legacy$constant$SearchSort;

        static {
            int[] iArr = new int[SearchSort.values().length];
            $SwitchMap$jp$pxv$android$legacy$constant$SearchSort = iArr;
            try {
                iArr[SearchSort.DESC.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                $SwitchMap$jp$pxv$android$legacy$constant$SearchSort[SearchSort.ASC.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                $SwitchMap$jp$pxv$android$legacy$constant$SearchSort[SearchSort.POPULAR_DESC.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
        }
    }

    public ShowRequiredPremiumDialogEvent(SearchSort searchSort) {
        this.searchSort = searchSort;
    }

    public AnalyticsAction getCancelAction() {
        int i = C42091.$SwitchMap$jp$pxv$android$legacy$constant$SearchSort[this.searchSort.ordinal()];
        if (i == 1) {
            return AnalyticsAction.PREMIUM_CANCEL_BUTTON_CLICK_AT_ALERT_VIA_SEARCH_RESULT_NEW;
        }
        if (i == 2) {
            return AnalyticsAction.PREMIUM_CANCEL_BUTTON_CLICK_AT_ALERT_VIA_SEARCH_RESULT_OLD;
        }
        if (i == 3) {
            return AnalyticsAction.PREMIUM_CANCEL_BUTTON_CLICK_AT_ALERT_VIA_SEARCH_RESULT_POPULAR;
        }
        throw new IllegalArgumentException();
    }

    public PremiumAnalyticsSource getPremiumAnalyticsSource() {
        int i = C42091.$SwitchMap$jp$pxv$android$legacy$constant$SearchSort[this.searchSort.ordinal()];
        if (i == 1) {
            return PremiumAnalyticsSource.SEARCH_RESULT_NEW;
        }
        if (i == 2) {
            return PremiumAnalyticsSource.SEARCH_RESULT_OLD;
        }
        if (i == 3) {
            return PremiumAnalyticsSource.SEARCH_RESULT_POPULAR;
        }
        throw new IllegalArgumentException();
    }

    public AnalyticsAction getPreviewClickAction() {
        int i = C42091.$SwitchMap$jp$pxv$android$legacy$constant$SearchSort[this.searchSort.ordinal()];
        if (i == 1) {
            return AnalyticsAction.PREMIUM_POPULAR_PREVIEW_CLICK_AT_SEARCH_RESULT_NEW;
        }
        if (i == 2) {
            return AnalyticsAction.PREMIUM_POPULAR_PREVIEW_CLICK_AT_SEARCH_RESULT_OLD;
        }
        if (i == 3) {
            return AnalyticsAction.PREMIUM_POPULAR_PREVIEW_CLICK_AT_SEARCH_RESULT_POPULAR;
        }
        throw new IllegalArgumentException();
    }

    public AnalyticsAction getRegisterAction() {
        int i = C42091.$SwitchMap$jp$pxv$android$legacy$constant$SearchSort[this.searchSort.ordinal()];
        if (i == 1) {
            return AnalyticsAction.PREMIUM_REGISTER_BUTTON_CLICK_AT_ALERT_VIA_SEARCH_RESULT_NEW;
        }
        if (i == 2) {
            return AnalyticsAction.PREMIUM_REGISTER_BUTTON_CLICK_AT_ALERT_VIA_SEARCH_RESULT_OLD;
        }
        if (i == 3) {
            return AnalyticsAction.PREMIUM_REGISTER_BUTTON_CLICK_AT_ALERT_VIA_SEARCH_RESULT_POPULAR;
        }
        throw new IllegalArgumentException();
    }

    public SearchSort getSearchSort() {
        return this.searchSort;
    }
}
